#! /bin/sh

function srm () {
	[ -e $1 ] && rm -rf $1
}

function clean() {
	APP=$1

	srm $ROOTDIR/etc/sites/enabled.d/${APP}.conf
	srm $ROOTDIR/etc/sites/sites.d/${APP}.conf
	srm $ROOTDIR/var/log/$APP/
	srm $ROOTDIR/var/sites/$APP
}

while (( $# ))
do
	clean $1
	shift
done
